<template>
    <div class="common-title">
        <span @click="backToHome">qiankun-test</span>
    </div>
</template>

<script>
    export default {
        name: "CommonTitle",
        methods: {
            backToHome() {
                this.$router.push({name: "home"})
            }
        }
    }
</script>

<style scoped lang="stylus">
    @import "~@/common/css/common.style.styl"
    .common-title
        height: commonHeight
        line-height: commonHeight
        text-align: left;
        font-size: 18px;
        background-color: cadetblue;
        color: #fff;
        padding: 0 20px
        font-weight: bold;
        span
            cursor pointer
</style>
